<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">

	<title>Class application\core\utils\Database | IBOS open source</title>

	<link rel="stylesheet" href="resources/bootstrap.min.css?973e37a8502921d56bc02bb55321f45b072b6f71">
	<link rel="stylesheet" href="resources/style.css?49f43d3208c5d7e33fa16d36107a345bf11cc00d">

</head>

<body>
	<nav id="navigation" class="navbar navbar-default navbar-fixed-top">
		<div class="container-fluid">
			<div class="navbar-header">
				<a href="index.html" class="navbar-brand">IBOS open source</a>
			</div>
			<div class="collapse navbar-collapse">

                <form id="search" class="navbar-form navbar-left" role="search">
                    <input type="hidden" name="cx" value="">
                    <input type="hidden" name="ie" value="UTF-8">
                    <div class="form-group">
                        <input type="text" name="q" class="search-query form-control" placeholder="Search">
					</div>
				</form>

				<ul class="nav navbar-nav">
					<li>
						<a href="namespace-application.core.utils.html" title="Summary of application\core\utils"><span>Namespace</span></a>
					</li>
					<li class="active">
<span>Class</span>					</li>





				</ul>
			</div>
		</div>
	</nav>

	<div id="left">
	<div id="menu">

		<div id="groups">
				<h3>Namespaces</h3>
			<ul>
					<li class="active">
						<a href="namespace-application.html">
							application<span></span>
						</a>
							<ul>
					<li class="active">
						<a href="namespace-application.core.html">
							core<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.core.cache.html">
							cache<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.core.cache.driver.html">
							driver						</a>
							</li>
					<li>
						<a href="namespace-application.core.cache.provider.html">
							provider						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.core.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.core.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.core.engines.html">
							engines<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.core.engines.local.html">
							local						</a>
							</li>
					<li>
						<a href="namespace-application.core.engines.sae.html">
							sae						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.core.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.core.modules.html">
							modules						</a>
							</li>
					<li class="active">
						<a href="namespace-application.core.utils.html">
							utils						</a>
							</li>
					<li>
						<a href="namespace-application.core.widgets.html">
							widgets						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.html">
							modules<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.article.html">
							article<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.article.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.article.core.html">
							core						</a>
							</li>
					<li>
						<a href="namespace-application.modules.article.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.article.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.calendar.html">
							calendar<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.calendar.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.calendar.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.calendar.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.contact.html">
							contact<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.contact.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.contact.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.contact.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.dashboard.html">
							dashboard<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.dashboard.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.dashboard.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.dashboard.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.department.html">
							department<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.department.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.department.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.department.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.diary.html">
							diary<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.diary.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.diary.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.diary.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.diary.utils.html">
							utils						</a>
							</li>
					<li>
						<a href="namespace-application.modules.diary.widgets.html">
							widgets						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.email.html">
							email<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.email.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.email.core.html">
							core						</a>
							</li>
					<li>
						<a href="namespace-application.modules.email.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.email.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.main.html">
							main<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.main.behaviors.html">
							behaviors						</a>
							</li>
					<li>
						<a href="namespace-application.modules.main.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.main.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.main.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.main.utils.html">
							utils						</a>
							</li>
					<li>
						<a href="namespace-application.modules.main.widgets.html">
							widgets						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.message.html">
							message<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.message.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.message.core.html">
							core<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.message.core.co.html">
							co						</a>
							</li>
					<li>
						<a href="namespace-application.modules.message.core.wx.html">
							wx<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.message.core.wx.callback.html">
							callback						</a>
							</li>
					<li>
						<a href="namespace-application.modules.message.core.wx.event.html">
							event						</a>
							</li>
								</ul></li></ul></li>
					<li>
						<a href="namespace-application.modules.message.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.message.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.mobile.html">
							mobile<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.mobile.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.mobile.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.mobile.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.position.html">
							position<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.position.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.position.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.position.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.recruit.html">
							recruit<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.recruit.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.recruit.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.recruit.core.html">
							core						</a>
							</li>
					<li>
						<a href="namespace-application.modules.recruit.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.recruit.utils.html">
							utils						</a>
							</li>
					<li>
						<a href="namespace-application.modules.recruit.widgets.html">
							widgets						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.role.html">
							role<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.role.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.role.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.user.html">
							user<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.user.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.user.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.user.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.user.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.vote.html">
							vote<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.vote.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.vote.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.vote.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.vote.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.weibo.html">
							weibo<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.weibo.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.weibo.core.html">
							core						</a>
							</li>
					<li>
						<a href="namespace-application.modules.weibo.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.weibo.utils.html">
							utils						</a>
							</li>
								</ul></li></ul></li></ul></li>
			</ul>
		</div>


		<div id="elements">
			<h3>Classes</h3>
			<ul>
				<li><a href="class-application.core.utils.Api.html">Api</a></li>
				<li><a href="class-application.core.utils.ApiCode.html">ApiCode</a></li>
				<li><a href="class-application.core.utils.Attach.html">Attach</a></li>
				<li><a href="class-application.core.utils.Cache.html">Cache</a></li>
				<li><a href="class-application.core.utils.Cloud.html">Cloud</a></li>
				<li><a href="class-application.core.utils.Convert.html">Convert</a></li>
				<li><a href="class-application.core.utils.Credit.html">Credit</a></li>
				<li class="active"><a href="class-application.core.utils.Database.html">Database</a></li>
				<li><a href="class-application.core.utils.DateTime.html">DateTime</a></li>
				<li><a href="class-application.core.utils.Env.html">Env</a></li>
				<li><a href="class-application.core.utils.File.html">File</a></li>
				<li><a href="class-application.core.utils.Ftp.html">Ftp</a></li>
				<li><a href="class-application.core.utils.IBOS.html">IBOS</a></li>
				<li><a href="class-application.core.utils.Image.html">Image</a></li>
				<li><a href="class-application.core.utils.Mail.html">Mail</a></li>
				<li><a href="class-application.core.utils.Module.html">Module</a></li>
				<li><a href="class-application.core.utils.Org.html">Org</a></li>
				<li><a href="class-application.core.utils.Page.html">Page</a></li>
				<li><a href="class-application.core.utils.PHPExcel.html">PHPExcel</a></li>
				<li><a href="class-application.core.utils.String.html">String</a></li>
				<li><a href="class-application.core.utils.System.html">System</a></li>
				<li><a href="class-application.core.utils.Upgrade.html">Upgrade</a></li>
				<li><a href="class-application.core.utils.Url.html">Url</a></li>
				<li><a href="class-application.core.utils.WebSite.html">WebSite</a></li>
				<li><a href="class-application.core.utils.Xml.html">Xml</a></li>
				<li><a href="class-application.core.utils.XMLParse.html">XMLParse</a></li>
			</ul>





		</div>
	</div>
</div>

<div id="splitter"></div>

<div id="right">
	<div id="rightInner">
<div id="content" class="class">
	<h1>Class Database</h1>











	<div class="alert alert-info">
		
		
		<b>Namespace:</b> <a href="namespace-application.html">application</a>\<a href="namespace-application.core.html">core</a>\<a href="namespace-application.core.utils.html">utils</a><br>
		

				<b>Copyright:</b>
				Copyright &copy; 2012-2013 IBOS Inc<br>
				<b>Author:</b>
				banyanCheung <a href="m&#97;&#105;&#108;&#116;&#111;&#58;&#x62;&#x61;&#x6e;&#x79;&#x61;&#x6e;&#x40;i&#98;&#111;&#115;&#46;&#99;&#111;&#109;&#x2e;&#x63;&#x6e;">&#x62;&#x61;&#x6e;&#x79;&#x61;&#x6e;&#x40;i&#98;&#111;&#115;&#46;&#99;&#111;&#109;&#x2e;&#x63;&#x6e;</a><br>
			<b>Located at</b> system/core/utils/Database.php		<br>
	</div>



		<div class="panel panel-default">
			<div class="panel-heading"><h2>Methods summary</h2></div>
			<table class="summary table table-bordered table-striped methods" id="methods">
		<tr data-order="getdbPrefix" id="_getdbPrefix">

			<td class="attributes"><code>
				 public static
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getdbPrefix">#</a>
			<code>getdbPrefix( )</code>

			<div class="description short">
				<p>获取表前缀</p>
			</div>

			<div class="description detailed hidden">
				<p>获取表前缀</p>



					<h4>Returns</h4>
					<div class="list">
						string
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="arrayKeysTo" id="_arrayKeysTo">

			<td class="attributes"><code>
				 public static
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_arrayKeysTo">#</a>
			<code>arrayKeysTo( <span>array <var>$array</var></span>, <span>array <var>$key</var></span> )</code>

			<div class="description short">
				<p>获取数组里$key的值到另外一个数组</p>
			</div>

			<div class="description detailed hidden">
				<p>获取数组里$key的值到另外一个数组</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$array</var></dt>
						<dd>源数组</dd>
						<dt><var>$key</var></dt>
						<dd>要获取的值</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						array<br>过滤后的数组
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="getDatabaseSize" id="_getDatabaseSize">

			<td class="attributes"><code>
				 public static
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getDatabaseSize">#</a>
			<code>getDatabaseSize( )</code>

			<div class="description short">
				<p>获取数据库大小</p>
			</div>

			<div class="description detailed hidden">
				<p>获取数据库大小</p>



					<h4>Returns</h4>
					<div class="list">
						string
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="getTablelist" id="_getTablelist">

			<td class="attributes"><code>
				 public static
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getTablelist">#</a>
			<code>getTablelist( <span>string <var>$tablePrefix</var> = <span class="php-quote">''</span> </span> )</code>

			<div class="description short">
				<p>获取全部ibos数据表的列表，过滤表前缀</p>
			</div>

			<div class="description detailed hidden">
				<p>获取全部ibos数据表的列表，过滤表前缀</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$tablePrefix</var></dt>
						<dd>表前缀</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						array<br>过滤后的数据列表数组
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="getTableStatus" id="_getTableStatus">

			<td class="attributes"><code>
				 public static
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getTableStatus">#</a>
			<code>getTableStatus( <span>string <var>$tableName</var></span>, <span>boolean <var>$formatSize</var> = <span class="php-keyword1">true</span> </span> )</code>

			<div class="description short">
				<p>获取一个表的状态</p>
			</div>

			<div class="description detailed hidden">
				<p>获取一个表的状态</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$tableName</var></dt>
						<dd>表名</dd>
						<dt><var>$formatSize</var></dt>
						<dd>格式化表数据大小与索引大小</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						array
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="dropTable" id="_dropTable">

			<td class="attributes"><code>
				 public static
				integer
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_dropTable">#</a>
			<code>dropTable( <span>string <var>$tableName</var></span>, <span>boolean <var>$force</var> = <span class="php-keyword1">false</span> </span> )</code>

			<div class="description short">
				<p>删除某一个表</p>
			</div>

			<div class="description detailed hidden">
				<p>删除某一个表</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$tableName</var></dt>
						<dd>要删除的表名</dd>
						<dt><var>$force</var></dt>
						<dd>是否强制删除（非强制情况只要表存在数据将不进行删除）</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						integer<br>-1 表存在数据 1 删除成功
					</div>


					<h4>Author</h4>
					<div class="list">
							denglh<br>
					</div>


			</div>
			</div></td>
		</tr>
		<tr data-order="cloneTable" id="_cloneTable">

			<td class="attributes"><code>
				 public static
				boolean
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_cloneTable">#</a>
			<code>cloneTable( <span>string <var>$prototype</var></span>, <span>string <var>$target</var></span> )</code>

			<div class="description short">
				<p>参照某一个表的数据结构，创建一个与其一样的表</p>
			</div>

			<div class="description detailed hidden">
				<p>参照某一个表的数据结构，创建一个与其一样的表</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$prototype</var></dt>
						<dd>原型表的表名</dd>
						<dt><var>$target</var></dt>
						<dd>目标表名</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						boolean
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="getSqlDumpTableStruct" id="_getSqlDumpTableStruct">

			<td class="attributes"><code>
				 public static
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getSqlDumpTableStruct">#</a>
			<code>getSqlDumpTableStruct( <span>string <var>$table</var></span>, <span>string <var>$compat</var></span>, <span>string <var>$dumpCharset</var></span>, <span>string <var>$charset</var> = <span class="php-quote">''</span> </span> )</code>

			<div class="description short">
				<p>导出数据表结构</p>
			</div>

			<div class="description detailed hidden">
				<p>导出数据表结构</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$table</var></dt>
						<dd>表名</dd>
						<dt><var>$compat</var></dt>
						<dd>建表语句格式</dd>
						<dt><var>$dumpCharset</var></dt>
						<dd>输出编码</dd>
						<dt><var>$charset</var></dt>
						<dd>数据库编码</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						string<br>数据库表结构字符串
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="databaseBackup" id="_databaseBackup">

			<td class="attributes"><code>
				 public static
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_databaseBackup">#</a>
			<code>databaseBackup( )</code>

			<div class="description short">
				<p>数据库备份操作</p>
			</div>

			<div class="description detailed hidden">
				<p>数据库备份操作</p>



					<h4>Returns</h4>
					<div class="list">
						array<br>返回一个带有消息状态及消息内容的数组
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="sqlDumpTable" id="_sqlDumpTable">

			<td class="attributes"><code>
				 public static
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_sqlDumpTable">#</a>
			<code>sqlDumpTable( <span>string <var>$table</var></span>, <span>integer <var>$extendIns</var></span>, <span>integer <var>$sizeLimit</var></span>, <span>boolean <var>$useHex</var> = <span class="php-keyword1">true</span></span>, <span>integer <var>$startFrom</var> = <span class="php-num">0</span></span>, <span>integer <var>$currentSize</var> = <span class="php-num">0</span> </span> )</code>

			<div class="description short">
				<p>导出表数据</p>
			</div>

			<div class="description detailed hidden">
				<p>导出表数据</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$table</var></dt>
						<dd>表名</dd>
						<dt><var>$extendIns</var></dt>
						<dd>是否使用扩展插入方式</dd>
						<dt><var>$sizeLimit</var></dt>
						<dd>导出的条数</dd>
						<dt><var>$useHex</var></dt>
						<dd>是否使用16进制</dd>
						<dt><var>$startFrom</var></dt>
						<dd>开始导出位置</dd>
						<dt><var>$currentSize</var></dt>
						<dd>当前数据大小</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						string
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="getBackupList" id="_getBackupList">

			<td class="attributes"><code>
				 public static
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getBackupList">#</a>
			<code>getBackupList( )</code>

			<div class="description short">
				<p>获取备份文件列表，返回数组格式</p>
			</div>

			<div class="description detailed hidden">
				<p>获取备份文件列表，返回数组格式</p>



					<h4>Returns</h4>
					<div class="list">
						array
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="getOptimizeTable" id="_getOptimizeTable">

			<td class="attributes"><code>
				 public static
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getOptimizeTable">#</a>
			<code>getOptimizeTable( )</code>

			<div class="description short">
				<p>获取可优化的数据表列表</p>
			</div>

			<div class="description detailed hidden">
				<p>获取可优化的数据表列表</p>



					<h4>Returns</h4>
					<div class="list">
						array
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="optimize" id="_optimize">

			<td class="attributes"><code>
				 public static
				boolean
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_optimize">#</a>
			<code>optimize( <span>array <var>$tables</var></span> )</code>

			<div class="description short">
				<p>调用数据库自带的优化命令优化数据表</p>
			</div>

			<div class="description detailed hidden">
				<p>调用数据库自带的优化命令优化数据表</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$tables</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						boolean
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="getBackupDir" id="_getBackupDir">

			<td class="attributes"><code>
				 public static
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getBackupDir">#</a>
			<code>getBackupDir( )</code>

			<div class="description short">
				<p>返回备份文件夹，方便其他程序调用</p>
			</div>

			<div class="description detailed hidden">
				<p>返回备份文件夹，方便其他程序调用</p>



					<h4>Returns</h4>
					<div class="list">
						string
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="syncTableStruct" id="_syncTableStruct">

			<td class="attributes"><code>
				 public static
				mixed
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_syncTableStruct">#</a>
			<code>syncTableStruct( <span>string <var>$sql</var></span>, <span>boolean <var>$version</var></span>, <span>string <var>$dbCharset</var></span> )</code>

			<div class="description short">
				<p>同步数据表结构</p>
			</div>

			<div class="description detailed hidden">
				<p>同步数据表结构</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$sql</var></dt>
						<dd></dd>
						<dt><var>$version</var></dt>
						<dd>是否更新版本的数据库</dd>
						<dt><var>$dbCharset</var></dt>
						<dd>数据库编码</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						mixed
					</div>




			</div>
			</div></td>
		</tr>
			</table>
		</div>








		<div class="panel panel-default">
            <div class="panel-heading"><h2>Constants summary</h2></div>
			<table class="summary table table-bordered table-striped constants" id="constants">
			<tr data-order="BACKUP_DIR" id="BACKUP_DIR">

				<td class="attributes"><code>string</code></td>
				<td class="name">
					<code>
<b>BACKUP_DIR</b>					</code>

					<div class="description short">
						<p>备份目录</p>
					</div>

					<div class="description detailed hidden">
						<p>备份目录</p>

					</div>
				</td>
				<td class="value">
					<div>
						<a href="#BACKUP_DIR" class="anchor">#</a>
						<code><span class="php-quote">'data/backup'</span></code>
					</div>
				</td>
			</tr>
			<tr data-order="OFFSET" id="OFFSET">

				<td class="attributes"><code>integer</code></td>
				<td class="name">
					<code>
<b>OFFSET</b>					</code>

					<div class="description short">
						<p>查询备份数据偏移量</p>
					</div>

					<div class="description detailed hidden">
						<p>查询备份数据偏移量</p>

					</div>
				</td>
				<td class="value">
					<div>
						<a href="#OFFSET" class="anchor">#</a>
						<code><span class="php-num">300</span></code>
					</div>
				</td>
			</tr>
			</table>
		</div>




</div>
	</div>

	<div id="footer">
		IBOS open source API documentation generated by <a href="http://apigen.org">ApiGen</a>
	</div>
</div>
<script src="resources/combined.js"></script>
<script src="elementlist.js"></script>
</body>
</html>
